let requestUtil = require('@/api/http/request.js');
//获取banner图片
export const getBannerAPI = () => {
	return requestUtil('/iot-device-saas-car-marketing/car/marketing/carousel/page', 'get', {current:1,size:100,status:1}, '');
}


//操作记录
export const getOperateLogAPI = (params) => {
	return requestUtil('/iot-device-saas-customer/customer/operate/log/page', 'get', {...params,fromFlag:2}, '');
}


//获取STS
export const getStsAPI = () => {
	return requestUtil('/blade-resource/oss/endpoint/get-acs-param-ali', 'get', {}, '');
}


//存储附件
export const saveAttachAPI = (params) => {
	return requestUtil('/blade-resource/attach/save', 'post', params, '');
}


//删除附件
export const removeAttachAPI = (attachId) => {
	return requestUtil('/blade-resource/attach/remove', 'post', {ids:attachId}, '');
}


//获取数据字典
export const getDicDataAPI = (code) => {
	return requestUtil('/blade-system/dict/dictionary', 'get', {code:code}, '');
}

//获取业务数据字典
export const getDictBizDataAPI = (code) => {
	return requestUtil('/blade-system/dict-biz/dictionary', 'get', {code:code}, '');
}


//获取区域
export const getRegionDataAPI = () => {
	return requestUtil('/blade-system/region/lazy-list?parentCode=00', 'get', {}, '');
}



//获取区域
export const getShopListAPI = (param) => {
	return requestUtil('/iot-device-saas-car/carshopinfo/page', 'get', param, '请求中');
}